Creates a view based on the specified IBindingList data source.

Namespace:  C1.LiveLinq
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
public static View<T> AsLive<T>(
	this IBindingList source
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function AsLive(Of T) ( _
	source As IBindingList _
) As View(Of T)

Parameters

source
Type: System.ComponentModel..::..IBindingList
The IBindingList data source to expose as a view.

Type Parameters

T
The type of the elements in the view.

Return Value

A view that contains the same elements as the IBindingList.

Remarks

Use this method to build views from existing data sources. The only requirements for the data source is that it implements the standard data binding interface IBindingList.

The resulting view may have its elements ordered differently than they are ordered in the source collection. Correspondingly, views built on this resulting view (for example, if you filter it with Where) will not preserve the source order either. If you need to preserve the source order, consider using the other AsLive overload where you can specify to what extent you need the order to be preserved.

See Also